<?php

namespace common\enums;

use yii\helpers\Html;

/**
 * 提现账号类别
 *
 * Class AccountTypeEnum
 * @package common\enums
 * @author  
 */
class AccountTypeEnum extends BaseEnum
{
    const UNION = 1;
    const TRC20 = 2;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::UNION => 'Bank',
            self::TRC20 => 'USDT-TRC20'
        ];
    }

    /**
     * @param $key
     * @return mixed|string
     */
    public static function html($key)
    {
        $html = [
            self::UNION => Html::tag('span', self::getValue(self::UNION), array_merge(
                [
                    'class' => "blue",
                ]
            )),
            self::TRC20 => Html::tag('span', self::getValue(self::TRC20), array_merge(
                [
                    'class' => "gray",
                ]
            )),
            // self::ALI => Html::tag('span', self::getValue(self::ALI), array_merge(
            //     [
            //         'class' => "cyan",
            //     ]
            // )),
            // self::WECHAT => Html::tag('span', self::getValue(self::WECHAT), array_merge(
            //     [
            //         'class' => "green",
            //     ]
            // )),
            // self::WECHAT_MP => Html::tag('span', self::getValue(self::WECHAT_MP), array_merge(
            //     [
            //         'class' => "green",
            //     ]
            // )),
        ];

        return $html[$key] ?? '';
    }
}